﻿using Dapper_Core.Basic;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.DAL.Impl
{
    public class SyncDetailFactory
    {
        /// <summary>
        /// 得到同步子表明细的实例
        /// </summary>
        /// <param name="dto">DTO</param>
        /// <returns></returns>
        public static ISyncDetail GetInstance(string tableName)
        {
            switch (tableName)
            {
                case "WorkflowNode":
                    {
                        return new WorkflowNodeSyncDetail();
                    }
                default:
                    {
                        return new AbstractSyncDetail();
                    }
            }
        }
    }
}
